package com.qfjy.homework.xuhui;

/**
 * @auther: xuhui
 * @date: 2022/11/10 19:25
 * @version: 1.0
 */
public class ShapeMaker {
    private Shape circle;
    private Shape rectangle;
    private Shape square;

    public void drawCircle() {
         circle.draw();
    }

    public void drawRectangle() {
           rectangle.draw();
    }

    public void drawSquare() {
        square.draw();
    }

    public ShapeMaker(){
        rectangle = new Rectangle();
        circle=new Circle();
        square = new Square();
    }

}
